const Router = require('koa-router');
const {verifyAuth} = require('../middleware/auth.middleware');
const {create, remove, miniList, otherList, searchMineList, searchOtherList, judge} = require('../controller/follow.controller');
const followRouter = new Router({prefix: "/follow"});

// 关注一个用户
followRouter.post("/", verifyAuth, create);
// 取消关注用户
followRouter.delete("/", verifyAuth, remove);
// 我关注的用户列表
followRouter.get("/mine/list", miniList);
// 关注我的用户列表
followRouter.get("/other/list", otherList)
// 搜索我的关注用户
followRouter.get("/mine", searchMineList);
// 搜索关注我的用户
followRouter.get("/other", searchOtherList);
// 我是否关注
followRouter.get("/judge", verifyAuth,judge);


module.exports = followRouter;
